/*

*/

/*
java 和 c 一样 '' 表示char ""表示字符串
*/
public class StringTest{

	public static void main(String[] args){

		String s1 = "Hello World!";

		System.out.println(s1);

		String s2 = "";
		// char c = ''; //编译错误

		// 练习1
		char c = 'a';
		int num = 10;
		String str = "HelloWorld";

		System.out.println(c + num + str);
		System.out.println(c + str + num);
		System.out.println(c + (num + str));
		System.out.println((c + num) + str);
		System.out.println(str + num + c);


		// 练习2 

		System.out.println("*   *");
		System.out.println('*' + '\t' + '*');
		System.out.println('*' + "\t" + '*');
		System.out.println('*' + '\t' + "*");
		System.out.println('*' + ('\t' + "*"));

		String str1 = 123 + "";
		System.out.println(str1);

		// int num1 = str1;
		// int num1 = (int)str1;

		int num1 = Integer.parseInt(str1);
		System.out.println(num1);


	}

}